﻿<UserControl x:Class="Twi.COMMON.WPF.PageComponent"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  
             MinWidth="530" Height="28" Loaded="UserControl_Loaded">
    <Grid>
        <StackPanel Orientation="Horizontal" FlowDirection="LeftToRight" Margin="5,5,0,0">
            <TextBlock Text="第" TextWrapping="Wrap" Width="15" Margin="0,2,0,0"/>  
            <TextBlock Foreground="#FF002CA5" x:Name="txtCurrentRecordBegin" MinWidth="20" TextAlignment="Center" TextWrapping="Wrap" Text="0" Margin="3,2,3,0" />
            <TextBlock FontWeight="Bold" Text="-" TextWrapping="Wrap" Width="7.334"  Margin="0,2,0,0"/>
            <TextBlock Foreground="#FF002CA5" x:Name="txtCurrentRecordEnd" TextAlignment="Center" TextWrapping="Wrap" MinWidth="20" Text="0" Margin="3,2,3,0"  />
            <TextBlock Text="条" TextWrapping="Wrap" HorizontalAlignment="Left" Width="15" Margin="0,2,0,0" />
            <TextBlock FontSize="15" Text="/" TextWrapping="Wrap" Margin="5,0,5,0" />
            <TextBlock Text="共" TextWrapping="Wrap" Width="15"  Margin="0,2,0,0"/>
            <TextBlock Foreground="#FF002CA5" x:Name="txtItemAmount" TextAlignment="Center" TextWrapping="Wrap" MinWidth="20" Text="0" Margin="3,2,3,0" />
            <TextBlock Text="条" TextWrapping="Wrap" Width="15" Margin="3,2,3,0" />            
        </StackPanel>

        <StackPanel Orientation="Horizontal" FlowDirection="RightToLeft" Margin="0,5,5,0">
            <Button Content="Go" Name="Gopage" Width="38" Click="Gopage_Click" FontSize="10" Margin="0,0,3,0" />
            <TextBox Name="txtgopage" Width="37" FontSize="10" KeyDown="txtgopage_KeyDown" Margin="0,0,3,0" HorizontalContentAlignment="Left" />
            <Image Cursor="Hand" x:Name="End" Source="..\Images\pageLast.png" Stretch="Fill" Width="18" MouseLeftButtonDown="End_MouseLeftButtonDown"  Margin="0,0,3,0"/>
            <Image Cursor="Hand" x:Name="imgNext" Source="..\Images\pageNext.png" Stretch="Fill" Width="18" MouseLeftButtonDown="imgNext_MouseLeftButtonDown"  Margin="0,0,3,0"/>
            <TextBlock Text="页" TextWrapping="Wrap" Width="12"  Margin="2,2,0,0"/>
            <TextBlock Foreground="#FF002CA5" x:Name="txtPageAmount" TextAlignment="Center" TextWrapping="Wrap" Text="0" MinWidth="20"  Margin="2,2,2,0"/>
            <TextBlock Text="共" TextWrapping="Wrap"  Margin="0,2,0,0"/>
            <TextBlock FontSize="15" FontWeight="Bold" Text="/" TextWrapping="Wrap" Margin="5,0,5,0"/>
            <TextBlock Text="页" TextWrapping="Wrap" Width="12"  Margin="0,2,0,0"/>
            <TextBlock Foreground="#FF002CA5" x:Name="txtCurrentPage" Text="0" TextAlignment="Center" TextWrapping="Wrap" MinWidth="20"  Margin="2,2,2,0"/>
            <TextBlock Text="第" TextWrapping="Wrap" Width="12"  Margin="0,2,0,0"/>

            <Image Cursor="Hand" x:Name="imgPrevious" Source="..\Images\pagePrevious.png" Stretch="Fill" Width="18" MouseLeftButtonDown="imgPrevious_MouseLeftButtonDown" Margin="3,0,3,0" />
            <Image Cursor="Hand" x:Name="imgHome" Source="..\Images\pageFirst.png" Stretch="Fill" Width="18" MouseLeftButtonDown="imgHome_MouseLeftButtonDown"  Margin="0,0,3,0"/>

        </StackPanel>
    </Grid>
</UserControl>
